<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        .container {
            padding: 10px;
            width: 100%;
            box-sizing: border-box;
        }
        .tow-row-vis{
            width:100px !important;
            display: -webkit-box;
            -webkit-line-clamp: 2;  /* 限制最多显示两行 */
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
            word-break: break-all;  /* 允许在任意字符间断行 */
            box-sizing: border-box;
        }
    </style>
</head>
<body>
<div class="container">
    <div class="tow-row-vis">你好你好你好你好你好你好你好你好你好你好你好</div>
</div>
</body>
</html>